package com.neusoft.bizcore.activiti.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.bizcore.activiti.model.LockData;

public interface LockDataRepository
        extends JpaRepository<LockData, Long>, CustomizedLockDataRepository {

    LockData findByCode(String code);

    @Transactional
    void deleteByWorkNum(String workNum);

    List<LockData> findByWorkNum(String workNum);

    @Transactional
    void deleteByCode(String code);

}
